package cn.jeefast.system.dao;

import java.util.List;
import java.util.Map;

import cn.jeefast.system.entity.SysUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.baomidou.mybatisplus.mapper.BaseMapper;
//import com.baomidou.mybatisplus.plugins.Page;

import cn.jeefast.system.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
  * 角色 Mapper 接口
 * </p>
 *
 * @author theodo
 * @since 2017-10-28
 */
@Component(value = "sysRoleDao")
public interface SysRoleDao extends BaseMapper<SysRole> {

	IPage<SysRole> queryPageList(Page<SysRole> page, @Param("roleName") Object username,
								 @Param("sidx") Object sidx, @Param("order")Object order,
								 @Param("filterSql")Object filterSql);
	
	List<SysRole> queryList(Map<String, Object> map);
	
	int deleteBatch(Object[] id);

}